[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NET REPLACE  extended network storing a data info database file:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Syntax:
~~~~~~~

  NET REPLACE f1:=v1 [,fN:=vN] [IN <alias>,[<order>]] ;
  [ [FOR <for>] [WHILE <while>] [NEXT <next>] ;
  [RECORD <rec>] [REST] [ALL] [CONTINUE] [RETURN <expr>]

  NET REPLACE f1:=v1 [,fN:=vN] [IN <alias>,[<order>]] ;
  [SEEK <key>] [CONTINUE] [RETURN <expr>]

Function:
~~~~~~~~~
It is the network version of clipper command REPLACE with following
enhancements:
1.Clause IN <alias>,<order>: command REPLACE is performed in workarea
  <alias> with active index <order>. After this command may be unlocked
  current record in <alias> workarea. All other settings are unchanged.
  (i.e. RecNo(), set order to..., RLock(), select, ...)

2.Clause SEEK <key>: command REPLACE is performed for all this records,
  that will be founded with seek <key> in required workarea.

3.Network enhancement: If command fails, the user is given an Alert about it
  and he is to decide the next step:
        - repeat the failed command
        - continue even if the command failed, and when the CONTINUE clause
          was used
        - break of the program with a question if the user realy wants to
          break the program
4.CONTINUE clause: If set the user has the possibility to continue after
  a network error occured. This can be checked by NetErr(), which is after
  a network error set to true, when also the CONTINUE clause is used.
5.RETURN clause: is to use when is the continue clause used too. If it is
  used and after an failed command user wants to continue, the RETURN false
  command is performed to immediate break of a failed function.

Source code is in Object.ch a Object3.prg

See Also: NetRLock Dbf View
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson